# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=irclog2html
pkgver=2.17.3
pkgrel=1
pkgdesc="Script to convert IRC logs to HTML and other formats"
url="https://mg.pov.lt/irclog2html/"
arch="noarch"
license="GPL-2.0-or-later"
depends="python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/i/irclog2html/irclog2html-$pkgver.tar.gz"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	install -Dpm 0644 src/$pkgname/irclog.css \
		"$pkgdir"/usr/share/$pkgname/irclog.css
}

sha512sums="
2fce4bf10494e3bf3d71f425c363716b0db846ac40aeec7ef274e4344e36302ddd027b0922804a457c269f67f895e87d1b4e9d0e1dba60ca6f1f4b3e52500bff  irclog2html-2.17.3.tar.gz
"
